html,
body,
#app {
  width: 100%;
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #ffffff;
  background-color: #272727;
}

/* 伪类 - 蒙层效果 */
.loading:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #000000 url("@/assets/loading.gif") no-repeat center;
  z-index: 999;
}


/* 未登录区域 */
.wx-container {
  margin-top: 170px;
}

.box {
  width: 300px;
  height: 360px;
  background-color: white;
  margin: 100px auto;
  color: black;
  border-radius: 8px;
  position: relative;
}

.change-btn{
  position: absolute;
  top: 5px;
  right: 5px;
  width: 45px;
  height: 45px;
}
.change-btn:hover{
  cursor: pointer;
}

.wx-min-box {
  width: 100%;
  height: 260px;
  position: absolute;
  top: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  /* border: 1px solid red; */
}

.code-img{
  height: 120px;
  width: 120px;
  margin: auto;
}

.wx-login {
  width: 120px;
  height: 40px;
  margin: auto;
  color: white;
  background-color: #5ab35b;
  border: none;
  cursor: pointer;
  border-radius: 10px;
}

p {
  font-size: 12px;
}

/* 已登录区域 */
.wx-chat-box {
  margin: 8% auto;
  height: 660px;
  width: 550px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: black;
  background-color: white;
}

/* 聊天头部区域 */
.chat-header-main {
  height: 70px;
  line-height: 70px;
  display: flex;
  padding: 0 30px;
  font-size: 18px;
  justify-content: space-between;
  border-bottom: 1px solid #ececec;
}

.chat-del {
  color: #9d9d9d;
}

.del {
  cursor: pointer;
}

/* 聊天内容区域 */
.chat-main-box {
  flex: 1;
  position: relative;
}

.chat-main-info {
  position: relative;
  top: 45%;
  color: #8c8c8c;
}

.chat-main-messages {
  margin: 10px 15px;
  height: 100%;
  /* 滚动功能 */
  overflow-y: auto;
  /* 隐藏滚动条 */
  scrollbar-width: none; 
  /* 让元素绝对定位 */
  position: absolute;
  right: 0;
  display: flex;
  flex-direction: column;
}

.message-box {
  display: flex;
  align-items: center;
  justify-content: right;
}


.message {
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 14px;
  background-color: #99cf58;
}

.header {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  margin-left: 20px;
}

/* 聊天输入框区域 */
.chat-input-box {
  margin-top: 20px;
  position: relative;
  height: 170px;
  border-top: 1px solid #ececec;
}

.textarea {
  width: 99%;
  height: 100px;
  border: none;
  padding: 10px;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  /* 固定宽高 */
  resize: none;
}

.chat-send {
  width: 110px;
  height: 30px;
  position: absolute;
  right: 30px;
  margin-top: 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
    color: #30af3c;
    background-color: #e1e1e1;
}